import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
  //保存项目配置参数
  saveProjectParams = '/sysconfig/save',
  //获取项目配置参数
  getProjectParams = '/sysconfig/get',
}
export const saveProjectParams = (params, mode: ErrorMessageMode = 'message') => {
  return defHttp.post<any>({ params,url: Api.saveProjectParams },
    {
      errorMessageMode: mode,
    },);
};
export const getProjectParams = (params, mode: ErrorMessageMode = 'message') => {
  return defHttp.get<any>({ params,url: Api.getProjectParams },
    {
      errorMessageMode: mode,
    },);
};